package Pre;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Dem02 {
    public static void main(String[] args) {
        try {
            FileOutputStream out = new FileOutputStream("E:\\IO流练习\\InoutStream\\001\\002.txt",true);
            out.write(97);
            byte[] bytes = new byte[]{101,102,98,84,84,84,68,84,94};
            out.write(bytes);
            byte[] bytes1 = new byte[]{99,68,74,102,121,88,96,108};
            out.write(bytes1,2,5);
            byte[] bytes2 = "你爱我，我爱你，蜜雪冰城甜蜜蜜。".getBytes();
            out.write(bytes2);
            out.flush();;
            out.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
